DEFINITION MODULE CdevInterface;
(*
	Interface from cdev to code generated by CdevGlue tool. The code
	generated by the tool defines two global variables, with names
	and types as specified below.

	Written by LDO 1996 January 12-13.
	Changed name of tool from CdevFramework to CdevGlue 1998 January 24.
*)

	FROM Types IMPORT
		LongCard,
		LongInt,
		ResID,
		ShortInt;
	FROM Events IMPORT
		EventRecordPtr;
	FROM Dialogs IMPORT
		DialogPtr;

	TYPE
		CdevArgRecord = (* exact copy of arguments passed to cdev entry point *)
			RECORD
				CPDialog : DialogPtr;
				cdevValue : LongInt;
				TheEvent : EventRecordPtr;
				CPanelID : ResID;
				NumItems : ShortInt;
				Item : ShortInt;
				Message : ShortInt;
			END (*RECORD*);
		CdevArgPtr = POINTER TO CdevArgRecord;

	VAR
		CdevGlobals [EXTERNAL] : CdevArgRecord; (* set up by glue code *)
		CdevCallerA5 [EXTERNAL] : LongCard; (* caller's A5 *)

END CdevInterface.
